import request from '@/utils/request'

export function getList(params) {
  return request({
    //后端路径
    url: '/produce/getList',
    method: 'get',
    params
  })
}

export function findProduct(params) {
  return request({
    //后端路径
    url: '/produce/findProduct',
    method: 'get',
    params
  })
}

export function addProduceOrder(params) {
  return request({
    //后端路径
    url: '/produce/addProduceOrder',
    method: 'get',
    params
  })
}

export function delBatchOrders(params) {
  return request({
    //后端路径
    url: '/produce/delBatch',
    method: 'get',
    params
  })
}

export function delOrderByNum(params) {
  return request({
    //后端路径
    url: '/produce/delOrderByNum',
    method: 'get',
    params
  })
}


export function editOrder(data) {
  return request({
    url: '/produce/editOrder',
    method: 'post',
    data
  })
}
